- show_locales = available_locales.size > 1
.row.without-margin.menu-link-sortable.footer-menu-container{id: f.index,
  data: {"field-id": f.index, new: f.object.new_record? ? '1' : nil}}
  .col-10
    = f.hidden_field :id
    = f.hidden_field :entity_type, value: f.object.entity_type # RoR 5.2.3 does not convert this proper
    = f.hidden_field :sort_priority, class: 'sort-priority'
    = f.hidden_field :_destroy, class: 'destroy-record'
    - available_locales.each do |locale_name, locale_value|
      .row
        - if show_locales
          .col-2
            = locale_name

        %div{:class => show_locales ? "col-5" : "col-6"}
          %span.hidden-tablet
            = t("admin.communities.footer.title")
          = text_field_tag "community[footer_menu_links_attributes][#{f.index}][translation_attributes][#{locale_value}][title]",
            f.object.title(locale_value), required: true, maxlength: 255,
            placeholder: t("admin.communities.footer.title_placeholder", locale: locale_value),
            disabled: disabled

        %div{:class => show_locales ? "col-5" : "col-6"}
          %span.hidden-tablet
            = t("admin.communities.footer.url")
          = text_field_tag "community[footer_menu_links_attributes][#{f.index}][translation_attributes][#{locale_value}][url]",
            f.object.url(locale_value), required: true, maxlength: 255, url: true,
            placeholder: t("admin.communities.footer.url_placeholder", locale: locale_value),
            disabled: disabled

  .col-2.menu-links-actions
    - if disabled
      = icon_tag("cross", ["icon-fix disabled"])
      = icon_tag("directup", ["icon-fix disabled"])
      = icon_tag("directdown", ["icon-fix disabled"])
    - else
      - link_class = "menu-link-#{(show_locales ? "with" : "without")}-locale-remove"

      = link_to "#", class: "menu-link-remove #{link_class}", tabindex: "-1" do
        = icon_tag("cross", ["icon-fix"])
      = link_to '#', class: "menu-link-action-up admin-sort-button", tabindex: "-1" do
        = icon_tag("directup", ["icon-fix"])
      = link_to '#', class: "menu-link-action-down admin-sort-button", tabindex: "-1" do
        = icon_tag("directdown", ["icon-fix"])
